package com.d2.modules.system.dict.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.d2.common.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author mayihua
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("sys_dict_item")
public class DictItem extends BaseEntity {
    private String value;
    private String label;
    private Long dictId;
    private Integer sort;

    public Integer getIntValue(){
        try {
            return Integer.parseInt(value);
        }catch (Exception ignored){

        }
        return null;
    }
}
